package com.jhs.boot.system.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 节点视图对象
 *
 * @author zxy
 * @since 2025-08-11 19:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema( description = "节点三方数据对象")
@Builder
public class NodesThirdVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "mac地址")
    private String mac;

    @Schema(description = "map地址")
    private String map;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "cpu的值")
    private Double cpu;

    @Schema(description = "内存的值")
    private Double mem;

    @Schema(description = "温度的值")
    /**
     * 温度
     */
    private Double tmp;

    @Schema(description = "配置大类")
    private String cfg_item;
    /**
     * 节点的上行流量值
     */
    @Schema(description = "节点的上行流量值")
    @JsonProperty("TxBytes")
    private Double txBytes;
    /**
     * 节点的下行行流量值
     */
    @JsonProperty("RxBytes")
    private Double rxBytes;
    /**
     * 节点的总流量值
     */
    @JsonProperty("TotalBytes")
    private Double totalBytes;

    @Schema(description = "ap的类型状态 0-map 1-mpp 3终端")
    private Integer type;

    @Schema(description = "终端的数量  ")
    private Integer clientNum ;

    private List<NodesThirdVO> client;

    /**
     * 节点的上行流量值
     */
    private Double upVal;
    /**
     * 节点的下行行流量值
     */
    private Double downVal;


    @Schema(description = "id")
    private Long  id;

    @Schema(description = "时间")
    private LocalDateTime createTime;

    @Schema(description = "配置json数据")
    private String jsonData;

    /**
     * 总内存
     */
    @JsonProperty("total_memory")
    private Double totalMemory;

    /**
     * 空闲内存
     */
    @JsonProperty("free_memory")
    private Double freeMemory;
    /**
     * 上线
     */
    private Double uptime;

    @Schema(description = "rfid")
    private String rfid;

    /**
     * 手机名
     */
    @JsonProperty("hostname")
    private String  hostName;

}

